export type OptionType = {
  text: string
  value: string
  checked: boolean
}

export type QuestionCheckboxPropsType = {
  title?: string
  isVertical?: boolean
  list?: OptionType[]
  disabled?: boolean
  onChange?: (value: QuestionCheckboxPropsType) => void
}

export type QuestionCheckboxStatPropsType = {
  stat: Array<{ name: string; count: number }>
}

export const QuestionCheckboxDefaultProps: QuestionCheckboxPropsType = {
  title: '多选标题',
  isVertical: false,
  list: [
    {
      text: '选项1',
      value: '1',
      checked: false,
    },
    {
      text: '选项2',
      value: '2',
      checked: false,
    },
  ],
}
